var express = require('express');
var router = express.Router();
const { getParkings } = require('../service/adminParkingsService');

router.get('/getParkings', async function(req, res, next) {
    const query = req.query;
    const data = await getParkings(query);
    res.send(data);
});

module.exports = router;